/**
 * 
 * 广州锐鹏计算机科技有限公司（www.ruipengkj.com）
 * 
 * 
 * Copyright (c) 2011-2012 RUIPENGKJ.Co.Ltd. All rights reserved.
 * 
 * */
package com.ruipengkj.bean;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 说明：
 * Entity Name 角色权限表
 * @Author：李智深
 * @Date：2012-03-14
 */
@Entity
@Table(name="ruipeng_tb_TRoleRight")
public class TRoleRight implements Serializable{
	
	private static final long serialVersionUID = 1L;

	private int id;//编号
	
	private TRole TRole;//角色
	
	private TRight TRight;//权限
	
	@Id
	@GeneratedValue
	@Column(name = "id")
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	@ManyToOne
	@JoinColumn(name="RoleID")
	public TRole getTRole() {
		return TRole;
	}

	public void setTRole(TRole tRole) {
		TRole = tRole;
	}

	@ManyToOne
	@JoinColumn(name="RightID")
	public TRight getTRight() {
		return TRight;
	}

	public void setTRight(TRight tRight) {
		TRight = tRight;
	}
	
}
